interface A1 {
	public final static double PI_SABIT = 3.14;

	public int hesapla();
}

interface A2 {
	public void hesapla(int d);
}

interface A3 {
	public double hesapla();
}

class S1 implements A1, A2 { // sorunsuz
	public void hesapla() { // adas metodlar(overloaded)
		System.out.println("S1.hesapla");
	}

	public void hesapla(int d) { // adas metodlar(overloaded)
		System.out.println("S1.hesapla " + d);
	}
}

/*
 * ! Hatali !, adas metodlar (overloaded) donus tiplerine gore ayirt edilemez
 */
class S2 implements A1, A3 {

	public int hesapla() {
		System.out.println("S2.hesapla");
	}

	public double hesapla() {
		System.out.println("S2.hesapla");
	}

	/*
	 * ! Hata ! public int hesapla() { System.out.println("S2.hesapla"); return
	 * 123; }
	 */
}
